﻿	config.eventcfg = {						//创建新采购单		createPurApply: function(){			var records = this.grid.getSelectionModel().getSelections();			if (!JxUtil.selectone(records)) return;			var apply_auditing = records[0].get('pur_apply_chk__auditing');			if( !(apply_auditing =='1' || apply_auditing == '3')){				JxHint.alert('采购方案还未审批通过，不能创建新采购单！');					return false;			}						var self = this;			//取选择记录的主键值			var params = 'funid='+ self.define.nodeid;			for (var i = 0; i < records.length; i++) {				params += '&keyid=' + records[i].get(self.define.pkcol);			}			//设置请求的参数			params += '&pagetype=grid&eventcode=createPurApply';						//执行处理的内容			var endcall = function(data) {				//重新加载数据				self.grid.getStore().reload();			};			//发送请求			Request.postRequest(params, endcall);		}			
};